package com.rcadmin.busi.logread.action;

import javax.annotation.Resource;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.rcadmin.busi.logread.dto.LogReadRequest;
import com.rcadmin.busi.logread.dto.LogReadResult;
import com.rcadmin.busi.logread.service.LogReadService;
import com.rcadmin.busi.logview.service.ResourceService;

/**
 * 日志接口类
 * 
 * @author tanson lam
 * @create 2016年9月6日
 */
@RestController
@EnableAutoConfiguration
public class LogReadRest {
	@Resource
	private ResourceService logViewService;

	/**
	 * 获取分类的树结构
	 */
	@RequestMapping(value = "/readlog.op", method = RequestMethod.POST)
	@ResponseBody
	public LogReadResult readlog(@RequestBody LogReadRequest logReadRequest) {
		LogReadResult logReadResult = LogReadService.readFile(logReadRequest);
		return logReadResult;
	}

}
